<?php
$install = implode(DIRECTORY_SEPARATOR, array(__DIR__, 'data', 'install.sql'));
$uninstall = implode(DIRECTORY_SEPARATOR, array(__DIR__, 'data', 'uninstall.sql'));
$installPro = implode(DIRECTORY_SEPARATOR, array(__DIR__, 'data', 'install-pro.sql'));
$uninstallPro = implode(DIRECTORY_SEPARATOR, array(__DIR__, 'data', 'uninstall-pro.sql'));

return array(
	'name' => "Services",
    
	'install' => array_merge(file_exists($installPro) ? array($install, $installPro) : array($install), array(
        array(
            'INSERT INTO x2_form_layouts
						(id,model,version,layout,defaultView,defaultForm,createDate,lastUpdated) 
				VALUES	(15,"Services","Form","{\"version\":\"1.0\",\"sections\":[{\"collapsible\":false,\"title\":\"Case Basics\",\"rows\":[{\"cols\":[{\"width\":289.0909091234207,\"items\":[{\"name\":\"formItem_contactId\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_assignedTo\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_parentCase\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"193\",\"tabindex\":\"0\"}]},{\"width\":283,\"items\":[{\"name\":\"formItem_origin\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"184\",\"tabindex\":\"0\"},{\"name\":\"formItem_impact\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"184\",\"tabindex\":\"0\"},{\"name\":\"formItem_status\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"184\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"Case Details\",\"rows\":[{\"cols\":[{\"width\":289.0909091234207,\"items\":[{\"name\":\"formItem_mainIssue\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"176\",\"tabindex\":\"0\"}]},{\"width\":283,\"items\":[{\"name\":\"formItem_subIssue\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"184\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"Expanded Details\",\"rows\":[{\"cols\":[{\"width\":572,\"items\":[{\"name\":\"formItem_subject\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"474\",\"tabindex\":\"0\"},{\"name\":\"formItem_description\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"146\",\"width\":\"474\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"Case Updates\",\"rows\":[{\"cols\":[{\"width\":572,\"items\":[{\"name\":\"formItem_nextAction\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"56\",\"width\":\"475\",\"tabindex\":\"0\"},{\"name\":\"formItem_resolution\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"144\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"\",\"rows\":[{\"cols\":[{\"width\":572,\"items\":[{\"name\":\"formItem_escalatedTo\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"143\",\"tabindex\":\"0\"}]}]}]}]}","0","1","'.time().'","'.time().'"),
						(16,"Services","View","{\"version\":\"1.0\",\"sections\":[{\"collapsible\":false,\"title\":\"Case Basics\",\"rows\":[{\"cols\":[{\"width\":286.0909091234207,\"items\":[{\"name\":\"formItem_id\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_contactId\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_assignedTo\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_parentCase\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"193\",\"tabindex\":\"0\"}]},{\"width\":286,\"items\":[{\"name\":\"formItem_createDate\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_origin\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"188\",\"tabindex\":\"0\"},{\"name\":\"formItem_impact\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"186\",\"tabindex\":\"0\"},{\"name\":\"formItem_status\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"186\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"Case Details\",\"rows\":[{\"cols\":[{\"width\":286.0909091234207,\"items\":[{\"name\":\"formItem_mainIssue\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"}]},{\"width\":286,\"items\":[{\"name\":\"formItem_subIssue\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"Expanded Details\",\"rows\":[{\"cols\":[{\"width\":572,\"items\":[{\"name\":\"formItem_subject\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"465\",\"tabindex\":\"0\"},{\"name\":\"formItem_description\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"126\",\"width\":\"465\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"Case Updates\",\"rows\":[{\"cols\":[{\"width\":286.0909091234207,\"items\":[{\"name\":\"formItem_lastActivity\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_lastUpdated\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_updatedBy\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"194\",\"tabindex\":\"0\"},{\"name\":\"formItem_resolution\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"144\",\"tabindex\":\"0\"}]},{\"width\":286,\"items\":[{\"name\":\"formItem_nextAction\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"96\",\"width\":\"176\",\"tabindex\":\"0\"}]}]}]},{\"collapsible\":false,\"title\":\"\",\"rows\":[{\"cols\":[{\"width\":572,\"items\":[{\"name\":\"formItem_escalatedTo\",\"labelType\":\"left\",\"readOnly\":\"0\",\"height\":\"24\",\"width\":\"144\",\"tabindex\":\"0\"}]}]}]}]}","1","0","'.time().'","'.time().'")'
        ),
    )),
    'uninstall' => file_exists($uninstallPro) ? array($uninstall, $uninstallPro) : array($uninstall),
	'editable' => true,
	'searchable' => true,
	'adminOnly' => false,
	'custom' => false,
	'toggleable' => false,
	'version' => '1.0',
);
?>
